package com.itheima.Demo1.domain;

public class Rabbit extends Animal {
    public Rabbit(int age, int numOfLegs) {
        super(age, numOfLegs);
    }

    public Rabbit() {
    }

    @Override
    public void eat() {
        System.out.println("年龄为"+age+"岁的"+numOfLegs+"条腿的兔子在吃狗尾巴草");
    }


}
